﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class BoundBLL
    {
       BoundDAL dal = new BoundDAL();
        /// <summary>
        /// 加入
        /// </summary>
        /// <returns></returns>
       public List<Bound> ShowBound()
       {
           return dal.ShowBound();
       }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DeleteBound(int id)
       {
           return dal.DeleteBound(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Bound_Add(Model.Bound p)
       {
           return dal.Bound_Add(p);
       }
       /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Bound ShowBoundX(int id)
       {
           return dal.ShowBoundX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateBound(Bound data)
       {
           return dal.UpdateBound(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Bound> SeleteBound(string name)
       {
           return dal.SeleteBound(name);
       }
    }
}
